package cn.stylefeng.guns.modular.gridsystem.temperature.entity;


import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)//Lombok注解之一，用于自动生成equals(Object other)和hashCode()方法。
@TableName("biz_temperature_exception_log")
public class BizTemperatureExceptionLog extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联故障Id
     */
    @TableField(value = "exception_id")
    private Integer exceptionId;

    /**
     * 故障第一次时间
     */
    @TableField(value = "first_time")
    private Date firstTime;

    /**
     * 网关id
     */
    @TableField(value = "gateway_id")
    private Integer gatewayId;

    /**
     * 网关通道
     */
    @TableField(value = "gateway_channel")
    private String gatewayChannel;
    /**
     * 温度值
     */
    @TableField(value = "temperature")
    private String temperature;

    /**
     * 异常类型
     */
    @TableField(value = "error_type")
    private Integer errorType;

    /**
     * 状态（字典 0正常 1停用）
     */
    @TableField(value = "status")
    private Integer status;

    @TableField(value = "device_id")
    private Integer deviceId;

    //处理人
    @TableField(value = "manage_user_id")
    private Long manageUserId;


    //处理时间
    @TableField(value = "manage_time")
    private String manageTime;
}
